package me.zhengjie.mapper;


import io.swagger.models.auth.In;
import me.zhengjie.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 描述
 *
 * @Author xulitao
 * @Date 2022/3/7
 * @Version 1.0
 */
@Mapper
@Repository
public interface CourseResultDao {

    List<CourseResultEntity> queryList(@Param("stuScoreVo")StuScoreVo stuScoreVo, @Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);

    Integer queryScoreNum(@Param("stuScoreVo")StuScoreVo stuScoreVo);

    List<StudentVo> queryStu();

    List<SubjectVo> getAllSubject();

    void insertStuScore( @Param("list") List<CourseResultEntity> list);

    void updateStuScore(CourseResultEntity entity);

    void delStuScore(CourseResultEntity entity);

    void insertWorkFinish(@Param("list") List<WordFinishVo> list);

    void updateWorkFinish(WordFinishVo entity);

    void delWorkFinish(WordFinishVo entity);

    List<WorkFinishEntity> getWorkFinish(@Param("wordFinishVo")WordFinishVo wordFinishVo, @Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);

    Integer getWorkFinishNum(@Param("wordFinishVo")WordFinishVo wordFinishVo);

    void insertPlayStation(@Param("list") List<AskAnswerVo> list);

    void updatePlayStation(AskAnswerVo entity);

    void delPlayStation(AskAnswerVo entity);

    List<AskAnswerEntity> getPlayStation(@Param("askAnswerVo")AskAnswerVo askAnswerVo, @Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);

    Integer getPlayStationNUm(@Param("askAnswerVo")AskAnswerVo askAnswerVo);
}
